package com.laboratory.eventlistenerlearning.event;

import org.springframework.context.ApplicationEvent;

/**
 * 部门事件
 */
public class DeptEvent extends ApplicationEvent {

    private final String departmentName;

    private final String message;

    public DeptEvent(Object source, String departmentName, String message) {
        super(source);
        this.departmentName = departmentName;
        this.message = message;
    }

    public String getDepartmentName() {
        return departmentName;
    }

    public String getMessage() {
        return message;
    }

}
